package com.sdrongyou.tms.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 司机实体类DO
 */
@Data
@TableName("tms_driver")
public class DriverDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    //姓名
    private String name;

    //年龄
    private String age;

    //性别
    private int sex;

    //手机号
    private String phone;

    //身份证
    private String idcard;

    //出生日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String birth;

    //民族
    private String nationality;

    //文化程度
    private int education;

    //籍贯
    private String nativePlace;

    //居住地址
    private String address;

    //婚姻状况
    private int marriage;

    //准驾车型
    private int authDrivingModel;

    //人员性质
    private String personnelNature;

    //驾龄
    private String drivingExperience;

    //驾驶证类型
    private int driverLicenseType;

    //驾驶证照片
    private String driverLicensePhoto;

    //身份证正面照片
    private String idcardFrontPhoto;

    //身份证反面照片
    private String idcardReversePhoto;

    //承运商（前端返回的数组格式）
    @TableField(exist = false)
    private String[] carrierArray;

    //承运商
    private String carrier;

    /*@TableLogic*/
    private Integer isDelete;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateAt;

    //创建人
    private int createBy;

}
